package cn.tedu.blogproject.mapper;
import cn.tedu.blogproject.pojo.dto.WeiboIndexVO;
import cn.tedu.blogproject.pojo.entity.Weibo;
import cn.tedu.blogproject.pojo.vo.WeiboDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WeiboMapper {
    Integer insertWeibo(Weibo weibo);

    List<WeiboIndexVO> selectAll();

    List<WeiboDetailVO> selectByIdAndUsername(@Param("id") Long id , @Param("username") String username);
}
